<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c"   uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>添加修改页面</title>
</head>
<body>
<h2>添加/修改页面</h2>

<form action="${ctx}/user/save" method="post" >
<input type="hidden" name="id" value="${param.id}"/>
用户：<input type="text" name="name" value="${user.name}" size="30" /><br/>
密码：<input type="text" name="pass" value="${user.pass }" size="30" /><br/>
年龄：<input type="text" name="age" value="${user.age}" size="10" /><br/>
<input type="submit" value="保存" />
<input type="reset" value="重置" />
<input type="button" onclick="history.go(-1);" value="返回" />
</form>
</body>
</html>